.class Lcom/htc/android/footprints/activity/ListModeNewActivity$9;
.super Ljava/lang/Object;
.source "ListModeNewActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/ListModeNewActivity;->onCreateDialog(I)Landroid/app/Dialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 552
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 4
    .parameter "dialog"
    .parameter "which"

    .prologue
    const-string v3, ","

    .line 553
    packed-switch p2, :pswitch_data_0

    .line 563
    :goto_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mFilter:Landroid/widget/Filter;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$600(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/widget/Filter;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$800(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v2

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ","

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchInput:Landroid/widget/TextView;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$900(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ","

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$400(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Filter;->filter(Ljava/lang/CharSequence;)V

    .line 566
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-static {v0}, Lcom/htc/android/footprints/utils/SettingInfo;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/SettingInfo;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$400(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/utils/SettingInfo;->setSortString(Ljava/lang/String;)V

    .line 567
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 568
    return-void

    .line 555
    :pswitch_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    const-string v1, "name asc"

    #setter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$402(Lcom/htc/android/footprints/activity/ListModeNewActivity;Ljava/lang/String;)Ljava/lang/String;

    .line 556
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    const/4 v1, 0x0

    #setter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortMode:I
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1302(Lcom/htc/android/footprints/activity/ListModeNewActivity;I)I

    goto :goto_0

    .line 559
    :pswitch_1
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    const-string v1, "create_time desc"

    #setter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$402(Lcom/htc/android/footprints/activity/ListModeNewActivity;Ljava/lang/String;)Ljava/lang/String;

    .line 560
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$9;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    const/4 v1, 0x1

    #setter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortMode:I
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1302(Lcom/htc/android/footprints/activity/ListModeNewActivity;I)I

    goto :goto_0

    .line 553
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
